package com.example.demo.service.Imp;

import com.example.demo.dao.BorrMapper;
import com.example.demo.model.Borr;
import com.example.demo.service.BorrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 编写者：施皓
 * 编写时间：2019.5.27
 */
@Service
public class BorrServiceImp implements BorrService {

    @Autowired
    private BorrMapper borrMapper;
    @Override
    public Borr BorrKey(Integer bid){

        return borrMapper.BorrKey(bid);
    }

    @Override
    public List<Borr> getStatus() {
        System.out.println("执行角色类型SQL语句");
        return borrMapper.getStatus();
    }

    @Override
    public List<Borr> getAllBorr() {
        return borrMapper.getAllBorr();
    }

    @Override
    public int delBorr(Integer bid) {
        return borrMapper.delBorr(bid);
    }

    @Override
    public int insertBorr(Borr borrmodel) {

        return borrMapper.insertBorr(borrmodel);
    }

    @Override
    public int updateBorr(Borr borrmodel) {

        return borrMapper.updateBorr(borrmodel);
    }
}
